package com.baidu.eureka.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.apache.catalina.mapper.Mapper;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

/**
 * (Permission)实体类
 *
 * @author makejava
 * @since 2020-07-18 11:41:09
 */
@ApiModel("资源权限类")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName(value = "permission")
public class Permission implements Serializable {
    private static final long serialVersionUID = 958020186963895154L;
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @TableId(value="id",type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * url
     */
    @ApiModelProperty(value = "资源url")
    @TableField(value = "url")
    private String url;
    /**
     * 是否可用:1可用,0不可用
     */
    @ApiModelProperty(value = "是否可用")
    @TableField(value = "available")
    private Boolean available;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    /**
     * 逻辑删除
     */
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    @TableField(value = "is_delete",select = false)
    private Boolean isDelete;

}